package com.candy.oop2;

public class Juicer {
    public static void main(String[] args) {
        Fruit a=new Apple();
        Fruit w=new Watermelon();
        juicing(a);
        juicing(w);

    }


    public static void juicing(Fruit fruit){
        fruit.juice();
    }
}
